package cn.sdormitory.school.service;

import cn.sdormitory.school.entity.SchoolPatrol;
import cn.sdormitory.school.entity.SchoolPatrolHandle;
import cn.sdormitory.school.vo.PatrolHandleQueryVo;
import cn.sdormitory.school.vo.SchoolPatrolVo;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import java.util.Map;

public interface SchoolPatrolHandleService {

    /**
     * 根据责任老师id查询待办值班记录
     * @param chargeTeacherId
     * @return
     */
    List<SchoolPatrolVo> findToDoListByTeacherId(Long chargeTeacherId);

    /**
     * 根据教师id查询待办数量
     * @param chargeTeacherId
     * @return
     */
    Integer findToDoListCountByTeacherId(Long chargeTeacherId);

    /**
     * 更新处理状态
     */
    int updatePatrolHandleStatus(Map<String,Object> params);

    /**
     * 分页查询
     * @param vo
     * @return
     */
    IPage<SchoolPatrolHandle> findPageList(PatrolHandleQueryVo vo);

    /**
     * 查询值班处理数据
     * @return
     */
    List<Map<String,Object>> findList(Map<String,Object> params);
}
